Problem Note 39417: PATHNAME function not working as documented in SAS® 9 and above
The PATHNAME function does not return the correct results when the
search-ref option is NOT used.
Here is what is stated in the online documentation.
If you do not specify a search-ref argument, and the name of a fileref
is identical to the name of a libref, PATHNAME searches first for a
fileref.
It was discovered that in previous releases the function was not returning the same default results as it was in SCL. Development changed the behavior to be the same as the SCL version of the function, and have requested that the documentation be changed.
The workaround is to use the search-ref option.
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9 TS M0 | 9.3 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9 TS M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9 TS M0 | 9.3 TS1M0 |
z/OS | 9 TS M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9 TS M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9 TS M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9 TS M0 | 9.3 TS1M0 |
Microsoft Windows XP Professional | 9 TS M0 | 9.3 TS1M0 |
64-bit Enabled AIX | 9 TS M0 | 9.3 TS1M0 |
64-bit Enabled HP-UX | 9 TS M0 | 9.3 TS1M0 |
64-bit Enabled Solaris | 9 TS M0 | 9.3 TS1M0 |
HP-UX IPF | 9 TS M0 | 9.3 TS1M0 |
Linux | 9 TS M0 | 9.3 TS1M0 |
OpenVMS Alpha | 9 TS M0 | 9.3 TS1M0 |
Tru64 UNIX | 9 TS M0 | 9.3 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
It does not honor the default search when the search-ref option is not used.
Type: | Problem Note |
Priority: | medium |
Topic: | SAS Reference ==> Functions ==> External Files ==> PATHNAME
|
Date Modified: | 2011-05-31 16:44:34 |
Date Created: | 2010-04-22 13:35:34 |